package com.lara.object;

class G{
	int i;
	G(int i){
		this.i=i;
	}
	public String toString(){
		return "i : "+i;
	}
}
class H{
	G g1;
	int j;
	H(G g1,int j){
		this.g1=g1;
		this.j=j;
	}
	public String toString(){
		return g1+"\t"+j;
	}
}
public class Manager7 {
public static void main(String[] args) {
G g1=new G(20);
H h1=new H(g1, 30);
System.out.println(g1);
System.out.println(h1);
}
}
